<?php

namespace Admin\Model;
use Common\Model\CommonModel;

class MenuModel extends CommonModel {
    
    protected $_validate = array(

        array('name', 'require', '标题不能为空', self::MUST_VALIDATE, 'regex', self::MODEL_BOTH),
        array('url', 'require', '链接不能为空', self::MUST_VALIDATE, 'regex', self::MODEL_BOTH),

    );

    protected $_auto = array(
        array('type','1', self::MODEL_INSERT),
        array('sort','1', self::MODEL_INSERT),
        array('status', '1', self::MODEL_INSERT),
    );


}
